﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Golem.Indexer.Data;
using Golem.Indexer.Indexers;

namespace Golem.Indexer.Search
{
    public delegate void MachineHandler(MachineDescriptor machine);
    public delegate void SearchHandler();

    public interface ISearch
    {
        event MachineHandler MachineAlive;
        event MachineHandler MachinePingCompleted;
        event SearchHandler SearchScanCompleted;

        int ComputerCounts { get; }
        int OnlineComputerCount { get; }
        int PingedComputersCount { get; }
        bool AreUnPingedComputers { get; }
        void AddNetwork(String ip, String mask);
        int ReloadScanNetworks();
        void ScanNetworks();
    }
}
